<link rel="stylesheet" href="__CDN__/assets/libs/layui/css/layui.css" media="all">
<script type="text/javascript" src="__CDN__/assets/js/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="__CDN__/assets/libs/layui/layui.js"></script>
<table class="table table-striped">
    <thead>
    <tr>
        <th>{:__('Title')}</th>
        <th>{:__('Content')}</th>
    </tr>
    </thead>
    <tbody>
    {volist name="row" id="vo"  }
    {if condition = "$key eq 'status'"}

    {else/}
    <tr>
        <td>{:__($key)}</td>
        <td>{$vo}</td>
    </tr>
    {/if}

    {/volist}
    <!-- {if $Think.get.dialog}
    <tr>
        <td>回传数据</td>
        <td>
            <div class="input-group">
                <input name="callback" class="form-control" value="test" />
                <span class="input-group-btn"><a href="javascript:;" class="btn btn-success btn-callback" >回传数据</a></span>
            </div>
        </td>
    </tr>
    {/if} -->
    </tbody>
</table>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        {if condition = "$row.status eq 0"}
        <button type="reset" class="btn btn-primary btn-embossed btn-success sublime" data-status="1">{:__('提现完成')}</button>

        <!--<button type="reset" class="btn btn-primary btn-embossed btn-success sublime" data-status="2">{:__('拒绝')}</button>-->
        {/if}
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>

<script>

    $('.sublime').click(function(){
        var id = "{$row.id}";
        var status = $(this).attr('data-status');

        // alert(order_id);
        $.ajax({
            type: 'get',
            url: "{:url('tixian/handle')}",
            data: {id:id,status:status},
            success: function(ret){
                if(ret.code == 1){
                    layer.msg(ret.msg);
                    // layer.closeAll();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                }else{
                    layer.msg(ret.msg);
                }

            }
        });
    });




</script>